package com.example.teesystem.entity.vo.clazz;


import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import com.example.teesystem.common.valid.ValidIds;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class ClassUploadVo {
    /**
     * 班级名称
     */
    @NotEmpty(message = ValidErrorMessage.CLASS_NAME_VALID_FAIL)
    private String className;
    
    /**
     * 课程id
     */
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;
    
    /**
     * 开放进阶训练的章节
     */
    @ValidIds(message = ValidErrorMessage.CLASS_OPEN_VALID_FAIL)
    private List<Integer> open;
}